package com.tencent.qf.common.gateway.activitymanager.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author p_daendeng@tencent.com
 * @create 2023/8/14 17:45
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SpecialAreaGoodsDO对象", description="专区商品配置表")
public class SpecialAreaGoodsConfigDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "商品展示名称")
    private String goodsName;

    @ApiModelProperty(value = "规则名称")
    private String rulerName;

    @ApiModelProperty(value = "奖池ID，多个用,隔开")
    private String awardPoolId;

    @ApiModelProperty(value = "舍弃坑位id，多个用,隔开")
    private String banPositionId;

    @ApiModelProperty(value = "每日转链上限")
    private Integer chainTransferDayLimit;

    @ApiModelProperty(value = "告警阈值，商品数小于该数时告警")
    private Integer alarmGoodsCount;

    @ApiModelProperty(value = "最低券后价")
    private Integer lowerCouponPrice;

    @ApiModelProperty(value = "最高券后价")
    private Integer maxCouponPrice;

    @ApiModelProperty(value = "展示顺序。从小到大表示从左往右。", required = true)
    @NotNull(message = "展示顺序不能为空")
    private Integer showOrder;

    @ApiModelProperty(value = "扩展字段")
    private String extJson;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "软删除标识")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deleteTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "是否优先体验")
    private String isPriority;
}
